package cn.agiledata.bank.transaction.logic;

import java.util.Date;

import cn.agiledata.bank.hibernateBean.SubAccount;
import cn.agiledata.bank.hibernateBean.Transaction;

public class RefundTransaction {
    private Transaction trans;

    public RefundTransaction(Transaction trans) {
        this.trans = trans;
    }

    public Long getId() {
        return this.trans.getId();
    }

    public String getTransId() {
        return this.trans.getTransId();
    }

    public SubAccount getDebit() {
        return this.trans.getDebit();
    }

    public SubAccount getCredit() {
        return this.trans.getCredit();
    }

    public Date getBeginDate() {
        return this.trans.getBeginDate();
    }

    public String getTransStatus() {
        return this.trans.getTransStatus();
    }

    public Double getAmount() {
        return new Double(Math.abs(this.trans.getAmount().doubleValue()));
    }
}
